package com.yuwei.module_property.model

import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.yuwei.module_property.api.PropertyApiService

class PropertyRepository: BaseRepository<PropertyApiService>() {
    override fun createApiServer(): PropertyApiService = OkHttpClientManager.retrofitInstance.create(PropertyApiService::class.java)
    suspend fun getPropertyList(regionId:Int) = createApiServer().getPropertyList(regionId)
    suspend fun getTenantList() = createApiServer().getTenantList()
}